package com.sun.config;

import com.sun.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author syh
 * @date 2021/8/20 10:25
 */
@Configuration
public class IocConfig {

    @Bean
    public User user(){
        return new User(12,"lisi");
    }
}

